package com.cherrypt.api.model.bo;

import com.cherrypt.api.model.dataobject.Discount;
import com.cherrypt.api.model.dto.DiscountDto;
import com.cherrypt.api.model.util.BeanUtils;

/**
 * @author intent
 * @date 2019/8/8 14:19
 * @about <link href='http://zzyitj.xyz/'/>
 */
public class DiscountBo {
    public static DiscountDto getDiscountDto(Discount discount) {
        DiscountDto discountDTO = new DiscountDto();
        BeanUtils.copyFieldToBean(discount, discountDTO);
        return discountDTO;
    }
}
